<?php
$str = 'This is Hello World of String';
// 1. Length of string
echo strlen($str); // 29
// 2. Want to repeat aany string several times
echo "<br>\n";
$str = 'Yes ';
echo str_repeat($str, 3); //Yes Yes Yes
echo "<br>\n";

// 3. very common function
//    used to replace any string in hayStack
echo "<br>\n";
$str = 'hello@google.com';
echo str_replace('@', ' at ', $str);

// 4. prints string in reverse order
echo "<br>\n";
echo strrev($str);
